import request, { Method } from "../request/index";

// 文献字典
export const dictLiteratureList = () => request(Method.get, "/dict-literature-list");

//文章字典
export const dictArticleList = () => request(Method.get, "/dict-article-list");

//区域字典
export const dictRegionList = () => request(Method.get, "/dict-region-list");

// 文献列表
export const literatureList = (id: string) => request(Method.get, `/literature-list/${id}`);


//文章列表
export const articleList = (id: string) => request(Method.get, `/article-list/${id}`);

// 区域详情
export const regionDetail = (id: string) => request(Method.get, `/region-detail/${id}`);

// 区域关联文献
export const relationLiteratureList = (id: string) => request(Method.get, `/relation-literature-list/${id}`);

// 区域关联文章
export const relationArticleList = (id: string) => request(Method.get, `/relation-article-list/${id}`);

// 文章详情
export const articleDetail = (id: string) => request(Method.get, `/article-detail/${id}`);

// 文獻详情
export const literatureDetail = (id: string) => request(Method.get, `/literature-detail/${id}`);

// 推荐的文献
export const recommendLiterature = () => request(Method.get, `/literature-recommend`);

// 推荐的文章
export const recommendArticle = () => request(Method.get, `/article-recommend`);

